import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:layout-dashboard',
      order: 2,
      title: '基础组件',
    },
    name: 'Module',
    path: '/module',
    children: [
      {
        name: 'Attachment',
        path: '/attachment',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '附件组件',
        },
      },
      {
        name: 'BusinessNumber',
        path: '/business-number',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '业务编号',
        },
      },
      {
        name: 'Querylist',
        path: '/querylist',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '查询列表',
        },
      },
      {
        name: 'Rule',
        path: '/rule',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '业务规则',
        },
      },
      {
        name: 'Log',
        path: '/log',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '日志组件',
        },
      },
      {
        name: 'DataShare',
        path: '/data-share',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '数据共享',
        },
      },
      {
        name: 'Sms',
        path: '/sms',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '短信管理',
        },
      },
      {
        name: 'Payment',
        path: '/payment',
        component: () => import('#/views/dashboard/workspace/index.vue'),
        meta: {
          icon: 'lucide:area-chart',
          title: '支付组件',
        },
      },
    ],
  },
];

export default routes;
